<?php
$config = [
//    'defaultRoute' => 'site/index',
    'name' => "管理后台",
    'aliases' => [],
    'components' => [
        'request' => [
            'csrfParam' => '_csrf-'.APP_ID,
        ],
        'user' => [
            'identityClass' => 'admin\models\Adminer',
            'enableAutoLogin' => true,
            'identityCookie' => ['name' => '_identity-cookie-'.APP_ID, 'httpOnly' => true],
        ],
        'session' => [
            'name' => 'session-'.APP_ID,
        ],
        'errorHandler' => [
            'errorAction' => 'site/error',
        ],
    ],
    'modules' => [
        'test' => 'admin\modules\test\TestModule',
        'pub' => 'admin\modules\pub\PubModule',
        'system' => 'admin\modules\system\SystemModule',
        'buildingOrder' => 'admin\modules\buildingOrder\BuildingOrderModule',
        'product' => 'admin\modules\product\ProductModule',
    ],
    'as access' => [
        'class' => 'yii\filters\AccessControl',
        'except' => [
            'site/*',
            'gii/*',
            'debug/*',
        ],
        'rules' => [
            [
                'allow' => true,
                'roles' => ['@'],
            ],
        ],
    ],
    'params' => [],
];
return $config;
